package com.only4play.practice.message.core.service.impl;

import com.only4play.practice.extension.executor.Extension;
import com.only4play.practice.message.core.domain.model.SmsSendModel;
import com.only4play.practice.message.core.service.ISmsSendService;
import com.only4play.practice.message.other.SmsBizId;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author mengdy
 */
@Extension(bizId = SmsBizId.ALI_SMS_BIZ)
@Component
@Slf4j
public class AliSmsSendServiceImpl implements ISmsSendService {

  @Override
  public boolean sendSms(SmsSendModel sendModel) {
    //发送逻辑
    System.out.println("使用阿里平台发送短信");
    log.info("使用阿里平台发送短信 = {}", sendModel);
    return true;
  }
}
